<script setup lang="ts">
import mtHtml from '../components/mp-html/components/mp-html/mp-html.vue'
const content = ref<string>('')
onLoad((options) => {
    if (options.title) {
        uni.setNavigationBarTitle({
            title: decodeURI(options.title)
        })
    }

    content.value = options?.content ?? ''
})
</script>

<template>
    <view class="content">
        <mtHtml :content="content"></mtHtml>
    </view>
</template>

<style scoped lang="scss">
.content {
    width: 100vw;
    overflow: hidden;
    padding: 15px 20px;
}
</style>
